<!-- 饼图 -->

<template>
  <EasyChart :baseOption="OPTION" :option="option" />
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import OurChartBar from '@admin/views/Maintain/Report/ReportWork/components/OurChartBar'
import OPTION from './OPTION'

// ============================== 导出组件 ============================== //

export default CORE.extend(OurChartBar, {
  /**
   * 计算属性 (慎用箭头函数)
   */
  computed: {
    ...OurChartBar.computed,

    /**
     * 基础配置
     */
    OPTION() {
      const len = this.nameList.length
      return { ...OPTION, series: OPTION.series.slice(0, len) }
    },
  },
})
</script>
